package com.djk.mapper;

import com.djk.pojo.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 联想
 * @description 针对表【music】的数据库操作Mapper
 * @createDate 2024-02-19 22:45:43
 * @Entity com.djk.pojo.Music
 */
@Mapper
public interface MusicMapper {

    Integer insertOne(Music music);

    Integer deleteByUserIdTitleAndType(Music music);

    Integer queryByUserIdTitleAndType(Music music);

    Integer deleteById(Integer id);
    Music queryById(Integer id);

    int deleteByIds(List<Integer> ids);

    List<Music> queryByName(String musicName, Integer id);

    List<Music> queryAll(Integer id);

    int updateMusic(Music music);
}




